package com.gitee.jjnnzb.designpatterninspring.business.login.entity.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @author Jjn
 * @since 2021-10-25 10:08
 */
@Data
@NoArgsConstructor
public class ThirdPartyLoginParam {
    
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", example = "test1")
    @Length(max = 30, message = "用户名不能超过30字符")
    private String userName;
    
    @Schema(description = "系统代码", example = "demo-system")
    @NotBlank(message = "系统代码不能为空")
    @Length(max = 30, message = "系统代码不能超过30字符")
    private String systemCode;
    
}
